package com.ssy.lingxi.member.merchant.model.vo.maintenance.response;

import com.ssy.lingxi.member.merchant.entity.MemberOrganizationDO;

import java.io.Serializable;

/**
 * 会员门店组积机构返回参数VO
 * @author wyx
 * @version 2.0.0
 * @date 2022-02-14
 **/
public class MemberOrganizationVO implements Serializable {
    private static final long serialVersionUID = -7889313052139738483L;

    /**
     * 主键ID
     */
    private Long id;

    /**
     * 父节点Id
     */
    private Long parentId;

    /**
     * 机构标识（用于树形菜单)
     */
    private String key;

    /**
     * 机构代码
     */
    private String code;

    /**
     * 机构名称
     */
    private String title;

    public MemberOrganizationVO(MemberOrganizationDO org) {
        this.id = org.getId();
        this.parentId = org.getParentId();
        this.key = org.getKey();
        this.code = org.getCode();
        this.title = org.getTitle();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
}
